/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.fiu.accesslog.statistics;

import java.util.Comparator;

/**
 *
 * @author Hasan Mahmud @date May 30, 2012
 */
public class Info implements Cloneable
{

      public String keyName;
//      public double keyNumber;
      public double totalHit;
      public double uniqueHit;

      public Info(String keyName, double totalHit, double uniqueHit)
      {
              this.keyName = keyName;
              this.totalHit=totalHit;
              this.uniqueHit=uniqueHit;
      }
      public Info(String keyName, double hit)
      {
            
            this(keyName,hit,hit);

      }

      @Override
      public Info clone()
      {
            Info cloned = null;
            try
            {
                  cloned = (Info) super.clone();
                  cloned.keyName = keyName;
                  cloned.uniqueHit = uniqueHit;
                  cloned.totalHit = totalHit;
            }
            catch (CloneNotSupportedException e)
            {
                  e.printStackTrace();

            }
            return cloned;
      }

 }
